package com.ucampus.dao.sql;

import org.apache.ibatis.jdbc.SQL;

public class ManagerSql {
    public String update(String username, String nickname,String password) {
        return new SQL() {{
            UPDATE("manager");
            if (nickname != null) {
                SET("nickname = #{nickname}");
            }
            if (password != null) {
                SET("password = #{password}");
            }
            WHERE("username = #{username}");
        }}.toString();
    }
}
